package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author caijinkang
 * @date 2023年05月08日 16:05
 */
public class EconomicalBody {
    /**
     * 设备id
     *
     * @author caijinkang
     * @date 2023/5/8 16:07
     * @param null
     * @return null
     */
    private Integer deviceId;
    /**
     * 设备名称
     *
     * @author caijinkang
     * @date 2023/5/8 16:07
     * @param null
     * @return null
     */
    private String deviceName;
    /**
     * 楼栋id
     *
     * @author caijinkang
     * @date 2023/5/8 16:07
     * @param null
     * @return null
     */
    private Integer buildingId;
    /**
     * 楼层id
     *
     * @author caijinkang
     * @date 2023/5/8 16:08
     * @param null
     * @return null
     */
    private Integer floorId;
    /**
     * 车间id
     *
     * @author caijinkang
     * @date 2023/5/8 16:08
     * @param null
     * @return null
     */
    private Integer workshopId;
    /**
     * 节省金额单位（1、大于，2、小于）
     *
     * @author caijinkang
     * @date 2023/5/8 16:12
     * @param null
     * @return null
     */
    private Integer unit;
    /**
     * 金额
     *
     * @author caijinkang
     * @date 2023/5/8 16:13
     * @param null
     * @return null
     */
    private Double price;
    /**
     * 开始时间
     *
     * @author caijinkang
     * @date 2023/5/8 16:13
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String beginDate;
    /**
     * 结束时间
     *
     * @author caijinkang
     * @date 2023/5/8 16:13
     * @param null
     * @return null
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String endDate;
    /**
     * 金额维度（1、日，2、月）
     *
     * @author caijinkang
     * @date 2023/5/8 16:14
     * @param null
     * @return null
     */
    private Integer type;

    /**
     * 分页
     *
     * @author caijinkang
     * @date 2023/6/6 13:44
     * @param null
     * @return null
     */
    private Integer pageSize;
    private Integer pageNum;

    public EconomicalBody() {
    }

    public EconomicalBody(Integer deviceId, String deviceName, Integer buildingId, Integer floorId, Integer workshopId, Integer unit, Double price, String beginDate, String endDate, Integer type) {
        this.deviceId = deviceId;
        this.deviceName = deviceName;
        this.buildingId = buildingId;
        this.floorId = floorId;
        this.workshopId = workshopId;
        this.unit = unit;
        this.price = price;
        this.beginDate = beginDate;
        this.endDate = endDate;
        this.type = type;
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getFloorId() {
        return floorId;
    }

    public void setFloorId(Integer floorId) {
        this.floorId = floorId;
    }

    public Integer getWorkshopId() {
        return workshopId;
    }

    public void setWorkshopId(Integer workshopId) {
        this.workshopId = workshopId;
    }

    public Integer getUnit() {
        return unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "EconomicalBody{" + "deviceId=" + deviceId + ", deviceName='" + deviceName + '\'' + ", buildingId=" + buildingId + ", floorId=" + floorId + ", workshopId=" + workshopId + ", unit=" + unit + ", price=" + price + ", beginDate='" + beginDate + '\'' + ", endDate='" + endDate + '\'' + ", type=" + type + '}';
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
}
